From: Debian OpenCL Maintainers Date: Mon, 10 Oct 2016 11:38:39 +0000 (+0100) Subject: Fix architecture name for ARM on Debian X-Git-Tag: archive/raspbian/1.6-3+rpi1~1^2^2^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ad8c68b01c81998a7680788550cebdf0f31e3add;p=pocl.git Fix architecture name for ARM on Debian Gbp-Pq: Name fix-configure-for-debian-archs.patch --- diff --git a/configure.ac b/configure.ac index 13ffe7d..5cfc189 100644 --- a/configure.ac +++ b/configure.ac @@ -1011,6 +1011,14 @@ case $host_cpu in # for compiling kernels for ARM envs without usable math libs. CL_DEVICE_ADDRESS_BITS=32 ;; + + aarch64*) + AC_MSG_NOTICE([using the aarch64 optimized kernel lib for the native device]) + HOST_LD_FLAGS="$HOST_LD_FLAGS -lm" + CLANG_MARCH_FLAG=mcpu + CL_DEVICE_ADDRESS_BITS=64 + ;; + amd64|x86_64) AC_MSG_NOTICE([using the x86_64 optimized kernel lib for the native device]) HOST_LD_FLAGS="$HOST_LD_FLAGS -lm" @@ -1033,7 +1041,7 @@ case $host_cpu in AC_MSG_NOTICE([using the ppc64 optimized kernel lib for the native device]) HOST_LD_FLAGS="$HOST_LD_FLAGS -lm" llc_triple="powerpc64-unknown-linux-gnu" - CL_DEVICE_ADDRESS_BITS=32 + CL_DEVICE_ADDRESS_BITS=64 #TODO: not all PowerPCs have Altivec? HOST_LLC_FLAGS="$HOST_LLC_FLAGS -mattr=altivec" CLANG_MARCH_FLAG="mcpu" @@ -1059,6 +1067,12 @@ case $host_cpu in CL_DEVICE_ADDRESS_BITS=32 ;; + mips64el*) + llc_triple="mips64el-unknown-linux-gnuabi64" + CLANG_MARCH_FLAG=mcpu + CL_DEVICE_ADDRESS_BITS=64 + ;; + mips*) llc_triple="mips-unknown-linux-gnu" CLANG_MARCH_FLAG=mcpu